﻿Imports DevExpress.XtraBars.Alerter

Public Module ModuleProperties

    Public lstSourceAllSanPham As New List(Of clsDMSanPham)
    Public lstSourceAllKhachHang As New List(Of clsDMKhachHang)

    Public dbTV As DataMainDataContext

    'Hằng số hành động
    Public vAddAction As String = "Add"
    Public vEditAction As String = "Edit"
    Public vDeleteAction As String = "Delete"
    Public vCopyAction As String = "Copy"
    Public vViewAction As String = "View"
    Public vUpdateAction As String = "Update"
    Public vCanceledAction As String = "Canceled" ' Hủy hóa đơn
    Public vIntKTNam As Integer = 0
    Public vIntKTThang As Integer = 0


    '-------------------------------------------------
    'Hằng số kết nối và đăng ký CDKey
    Public ConnectionString As String = ""
    Public vKetNoiThanhCong As Boolean = False
    Public vSERVER As String = ""
    Public vDATABASE As String = ""
    Public vUID As String = ""
    Public vPWD As String = ""
    Public vAuthentication As String = ""
    Public vDaDangKy As Boolean = True
    Public vMacDBAdress As String = ""
    Public vMaDonVi As String = ""

    ''' <summary>
    ''' Danh sách tất cả phím tắt
    ''' </summary>
    ''' <remarks></remarks>
    Public vlstPhimTat As List(Of clsPhimTat)
    'Id các phím tắt
    Public Const pIdThem As String = "ADD"
    Public Const pIdSua As String = "EDIT"
    Public Const pIdXoa As String = "DELETE"
    Public Const pIdCopy As String = "COPY"
    Public Const pIdChon As String = "ACCEPT"
    Public Const pIdXuat As String = "EXPORT"
    Public Const pIdThoat As String = "EXIT"
    Public Const pIdTimKiem As String = "FIND"
    Public Const pIdTimTiep As String = "FINDNEXT"
    Public Const pIdGhiVaDong As String = "SAVECLOSE"
    Public Const pIdGhiVaThem As String = "SAVENEW"
    Public Const pIdIn As String = "PRINT"
    Public Const pIdLamTuoi As String = "REFRESH"
    Public Const pIdTroGiup As String = "INFO"
    Public Const pIdLamTronBanBo_Up As String = "ROUND_UP"
    Public Const pIdLamTronBanBo_Down As String = "ROUND_DOWN"
    Public Const pIdTimTrenDong As String = "FILTERROW"
    Public Const pIdFocusFilter As String = "FILTERROW"
    Public Const pIdGhiVaIn As String = "SAVEPRINT"
    Public Const pIdMayTinh As String = "CACULATOR"
    Public Const pIdChenDong As String = "INSERTROW"

#Region "Text on button"
    Public BtnAddNewCaption As String = "Thêm mới"
    Public BtnDeleteCaption As String = "Xóa"
    Public BtnEditCaption As String = "Sửa đổi"
    Public BtnCancelCaption As String = "Đóng"
    Public BtnExitCaption As String = "Thoát"
    Public BtnExportDataCaption As String = "Xuất dữ liệu"
    Public BtnPrintCaption As String = "&In"
    Public BtnRefreshCaption As String = "Nạp lại"
    Public BtnSaveCaption As String = "&Ghi lại"
    Public BtnSaveAndCloseCaption As String = "Ghi và đóng"
    Public BtnSaveAndPrintCaption As String = "Ghi và in"
    Public BtnSaveAndAddCaption As String = "Ghi và thêm"
    Public BtnHelpCaption As String = "Trợ giúp"
    Public BtnAcceptCaption As String = "&Chấp nhận"
    Public BtnChooseCaption As String = "&Chọn"
    Public BtnCopyCaption As String = "Sao chép"
    Public BtnSearchCaption As String = "Tìm kiếm"
    Public BtnFilterCaption As String = "Lọc"
    Public BtnPrintLevel2Caption As String = "In &2 cấp"
    Public BtnPrintLevel3Caption As String = "In &3 cấp"
    Public BtnTieuChiCaption As String = "Tiêu chí"
    Public BtnDetailCaption As String = "Chi tiết"
    Public BtnCanDoiCaption As String = "Cân đối"
    Public BtnLuuChuyenCapTion As String = "Lưu chuyển"
    Public BtnCloseCaption As String = "Đóng"
    Public BtnCalculator As String = "Tính toán"
    Public BtnTransferReceiptsCaption As String = "Chuyển HĐ"
    Public BtnViewEdit As String = "Xem/Sửa"
    Public BtnSearchNext As String = "&Lọc tiếp"
    Public BtnCancelSearch As String = "&Không lọc"
    Public vAlcNote As New AlertControl
#End Region
    Public Enum ELenh
        BinhThuong = 0
        ChuyenBan = 1
        NhapBan = 2
        GhepBan = 3
        TachBan = 4
    End Enum

    'Biến lưu trữ thông tin người sử dụng
    Public vUser As clsNguoiDung
    Public Enum ETinhChatSanPham
        NguyenLieu = 0
        ThucDon = 1
    End Enum

    Public Enum ELoaiSanPhamBo
        Combo = 0
        Khac = 1
    End Enum

    ''' <summary>
    ''' Trang thai ban
    ''' </summary>
    ''' <remarks></remarks>
    Public Enum ETrangThai
        SanSang = 0
        DatTruoc = 1
        MoBanPhong = 2
        GoiMon = 3
    End Enum

    Public Enum ELoaiChungTu As Integer
        PhieuThu = 1
        PhieuChi = 2
        UNThu = 3
        UNChi = 4
        ChungTuKhac = 5
        GhiTangTSCD = 6
        GhiGiamTSCD = 7
        DieuChinhTSCD = 8
        KhauHaoTSCD = 9
        MuaMoiVaGhiTang = 10
        KhauTruThue = 11
        ChungTuGhiSo = 12
        KetChuyen = 13
    End Enum
End Module
